

public class LotteryRecord {	
	private String order_id = "";
	private int status = 0;
	private String createdate = "";
	private String paydate = "";
	private String gamekind = "";
	private String iskuai ="";
	private String playkind1 = "";
	private String code1 = "";
	private String playkind2 = "";
	private String code2 = "";
	private String num = "";
	private String paymoney = "";
	private String url = "";
	private String url1 = "";
	private String url2 = "";
	private String url3 = "";
	private int getstatus=0;
	
	public String getAllUrl(){
		String url = getURL();
		System.out.println("url="+getURL());
		if(!(getURL1().equals("") || getURL1() == null) && (getURL1().contains(".jpg") || getURL1().contains(".png")))url += ";" + getURL1();
		if(!(getURL2().equals("") || getURL2() == null) && (getURL2().contains(".jpg") || getURL2().contains(".png")))url += ";" + getURL2();
		if(!(getURL3().equals("") || getURL3() == null) && (getURL3().contains(".jpg") || getURL3().contains(".png")))url += ";" + getURL3();
		System.out.println("url1="+getURL1());
		System.out.println("url2="+getURL2());
		System.out.println("url3="+getURL3());
		System.out.println("ALLURL===>" + url);
		
		return url;
	}
	
	public void setURL3(String url3){
		this.url3 = url3;
	}
	
	public String getURL3(){
		return url3;
	}
	
	public void setURL2(String url2){
		this.url2 = url2;
	}
	
	public String getURL2(){
		return url2;
	}
	
	public void setURL1(String url1){
		this.url1 = url1;
	}
	
	public String getURL1(){
		return url1;
	}
	
	public void setURL(String url){
		this.url = url;
	}
	
	public String getURL(){
		return url;
	}
	
	public void setPayMoney(String paymoney){
		this.paymoney = paymoney;
	}
	
	public String getPayMoney(){
		return paymoney;
	}
	
	public void setNum(String num){
		this.num = num;
	}
	
	public String getNum(){
		return num;
	}
	
	public void setCode2(String code2){
		this.code2 = code2;
	}
	
	public String getCode2(){
		return code2;
	}
	
	public void setPlaykind2(String playkind2){
		this.playkind2 = playkind2;
	}
	
	public String getPlaykind2(){
		return playkind2;
	}
	
	public void setCode1(String code1){
		this.code1 = code1;
	}
	
	public String getCode1(){
		return code1;
	}
	
	public void setPlayKind1(String playkind1){
		this.playkind1 = playkind1;
	}
	
	public String getPlayKind1(){
		return playkind1;
	}
	
	public void setIsKUAI(String iskuai){
		this.iskuai = iskuai;
	}
	
	public String getIsKUAI(){
		return iskuai;
	}
	
	public void setGameKind(String gamekind){
		this.gamekind = gamekind;
	}
	
	public String getGameKind(){
		return gamekind;
	}
	
	/**
	 *  superlotto638-威力彩
		dailycash-今彩539
		ttt-九宮格
		38m6-38樂合彩
		39m5-39樂合彩
		49m6-49樂合彩
		4d-4星彩
		3d-3星彩
		lotto649-6/49大樂透
		fp-統一發票
	 * @return
	 */
	public String getLoType(){
		if(gamekind.equals("superlotto638"))
			return "威力彩";		
		else if(gamekind.equals("lotto649"))
			return "大樂透";
		else if(gamekind.equals("lotto539"))
			return "今彩539";
		else if(gamekind.equals("ttt"))
			return "九宮格";
		else if(gamekind.equals("38m6"))
			return "38樂合彩";
		else if(gamekind.equals("39m5"))
			return "39樂合彩";
		else if(gamekind.equals("49m6"))
			return "49樂合彩";
		else if(gamekind.equals("4d"))
			return "4星彩";
		else if(gamekind.equals("3d"))
			return "3星彩";
		else if(gamekind.equals("fp"))
			return "統一發票";
		return "";
	}
	
	public void setPayDate(String paydate){
		this.paydate = paydate;
	}
	
	public String getPayDate(){
		return paydate;
	}
	
	public void setCreateDate(String createdate){
		this.createdate = createdate;
	}
	
	public String getCreateDate(){
		return createdate;
	}
	
	//是否歸檔
	public void setGetStatus(String status){
		try{
			this.getstatus = Integer.parseInt(status);
		}catch(Exception e){ this.getstatus = 0;}
	}
	
	public int getGetStatus(){
		return this.getstatus;
	}
	
	public String getGetStatusString(){
		if(getstatus==1)return "已歸檔";
		else return "未歸檔";
	}
	
	//訂單狀態
	public void setStatus(String status){
		try{
			this.status = Integer.parseInt(status);
		}catch(Exception e){ this.status = 0;}
	}
	
	public int getStatus(){
		return status;
	}
	
	public String getStatusString(){
		if(status ==-2){
			return "已退款";
		}else if(status==-1){
			return "已開獎購買失敗";
		}else if(status==0){
			return "已註銷";
		}else if(status==1){
			return "已購買";
		}else if(status==2){
			return "中獎未索取";
		}else if(status==3){
			return "中獎索取通知";
		}else if(status==4){
			return "中獎並寄發";
		}else if(status==5){
			return "中獎並兌換";
		}
		return "未生效";
	}
	
	public void setOrder_id(String order_id){
		this.order_id = order_id;
	}
	
	public String getOrder_id(){
		return order_id;
	}
	
	
	
	
	

}
